package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by Czl on 2015/8/4.
 */
@SuppressWarnings("serial")
public class Org extends Model<Org> {

    public static final Org dao = new Org();

    /**
     * 根据组织编号
     * 查询所在组织
     * @param orgNo
     * @return
     */
    public Org getByOrgNo(String orgNo){
        return dao.findFirst("select * from t_org where org_no = ?",orgNo);
    }
}
